//
//  DCTool.h
//  Driver
//
//  Created by 大橙子 on 2018/11/5.
//  Copyright © 2018 Tomous. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Security/Security.h>
NS_ASSUME_NONNULL_BEGIN

@interface DCTool : NSObject
+(UIImage *)getImageForColor:(UIColor *)color;

//#pragma 正则匹配手机号
+(BOOL)checkTelNumber:(NSString*)telNumber;
//打电话
+ (void)call:(NSString *)phone;

+(void)addKeychainData:(id)data forKey:(NSString *)key;
+(id)getKeychainDataForKey:(NSString *)key;
+(void)deleteKeychainDataForKey:(NSString *)key;

//获取验证码button
+(void)startTimeWithButton:(UIButton *)btn;

//获取当前时间
+ (NSString *)getCurrentData;
//获取当前年月日
+ (NSString *)getYearMonthDay;
+ (NSInteger )getYear;
+ (NSInteger )getMonth;
+ (NSInteger )getDay;

//获取30天前的时间
+ (NSString *)getBeforeData;

+(void)loginOut;
@end

NS_ASSUME_NONNULL_END
